<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <td>用户id</td>
        <td>用户名</td>
        <td>密码</td>
        <td>年龄</td>
        <td>操作</td>
    </tr>
    {% for user in userlist %}
    <tr>
        <td>{{user['id']}}</td>
        <td>{{user['name']}}</td>
        <td>{{user['pass']}}</td>
        <td>{{user['age']}}</td>

        <td>
            <a href="/delete/?id={{user['id']}}">删除</a>
            <a href="/update/?id={{user['id']}}">更新</a>
            <a href="/add/">添加</a>
        </td>
    </tr>
    {% endfor %}
</table>
<a href="/lguot">登出</a>
</body>
</html>